home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / Core 18⁄March⁄1994 / CImagePane.c < prev    next >
Encoding:
Text File  |  1993-04-02  |  725 b   |  22 lines  |  [TEXT/KAHL]

  1. /* CImagePane.c */
  2.  
  3. #include "CImagePane.h"
  4. #include "CWindow.h"
  5.  
  6.  
  7. void        CImagePane::IImagePane(LongPoint Start, LongPoint Extent, CWindow* TheWindow,
  8.                     CEnclosure* TheEnclosure, short ThePictID)
  9.     {
  10.         PictID = ThePictID;
  11.         IViewRect(Start,Extent,TheWindow,TheEnclosure);
  12.     }
  13.  
  14.  
  15. void        CImagePane::DoUpdate(void)
  16.     {
  17.         PicHandle        Image;
  18.  
  19.         SetUpPort();
  20.         ERROR(ResLoad == 0,PRERR(ForceAbort,"Automatic resource loading is disabled."));
  21.         Image = (PicHandle)GetResource('PICT',PictID);
  22.         ERROR(Image==NIL,PRERR(Forc